﻿<!DOCTYPE html>
<html>
<!-- 考试结果 -->

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <script src="/static/js/common.js"></script>
    <style>
        .head-tool {
            border-bottom: 1px solid #dcdcdc;
            margin-bottom: 10px;
            /* height: 40px; */
            padding-bottom: 10px;
            /* text-align: right; */
        }
    </style>
</head>

<body>
    <div id="app" class="popupW100" v-cloak>
        <el-form label-position="right" :model="Form" status-icon :rules="rules" ref="ruleForm"
                 size="mini">
            <el-row>
                <el-col class="ahead-tool">
                    本次答题得分 {{result.score}}分 错题 {{result.mark02}}个
                </el-col>
                <el-col class="ahead-tool" v-for="(a,b) in result.zB_ExamQuestions">
                    <span>{{a.questionContent}}</span>
                    <br /><span v-for="(i,j) in a.zB_QuestionsOptions">{{i.option}}.{{i.content}}</span>
                    <br /><br /><span>正确答案:{{a.rightkey}}</span>
                    <br /><span>你的答案:{{a.firstOption}}</span>
                </el-col>
            </el-row>


            <!--<el-row type="flex" justify="end">
                <el-form-item>

                    <el-button type="primary" @click="onSubmitForm('ruleForm')">{{col.btnFinish}}</el-button>
                </el-form-item>
            </el-row>-->
        </el-form>






    </div>
    <script type="text/javascript">

        var app = new Vue({

            el: '#app',
            data: {
                //父业传参
                result: {},
                id: '',
                checkList: ['选中且禁用', '复选框 A'],
                ListItem: ListItem,
                Trainingtype: [],
                Trainingobjectives: [],
                formInline: {
                    model: { hiddenTroubleClass: '', headOperations: '' },
                    offset: 0,
                    limit: 10
                },
                //业务表单内容
                Form: {
                    id: guidEmpty,
                    loginName: '',
                    name: '',
                    password: '',
                    sex: '',
                    remarks: '',
                },
                //表单验证
                rules: {
                    loginName: [
                        verification.NotNull,
                        { pattern: verification.StringLengthAtoB.t.format(2, 10), message: verification.StringLengthAtoB.m.format(5, 10), trigger: 'blur' }
                    ],
                    password: [
                        verification.NotNull

                    ],
                    sex: [
                        verification.NotNullSelect
                    ],
                    name: [
                        verification.NotNull
                    ]
                }
            },

            methods: {
                //获取分页数据
                GetPageData: function (currentIndex) { GetPageData(this, currentIndex, '/api/Onlineexamination/GetList') },
                //查询方法
                onSubmit: function () { onSubmit(this); },
                btnUpLoad: function () {
                    this.$message({
                        message: '上传成功',
                        type: 'success'
                    });
                },
                //提交数据
                onSubmitForm: function (formName) {

                },
                getData: function () {
                    //获取数据 传入
                    var mythis = this;
                    myAjax("get", mythis, '/api/ZB_ExamRecord/GetResult?id=' + this.id, null, function (response) {
                        mythis.result = response.data;
                    }, false);


                },

                //删除方法
                onDelete: function () { onDelete(this, '/api/Onlineexamination/DeleteMuti'); },
                //列表选择触发
                handleSelectionChange: function (val) { handleSelectionChange(this, val); },
                //获取分页数据
                GetPageData: function (currentIndex) { GetPageData(this, currentIndex, '/api/Onlineexamination/GetList') },
                //pagesize改变 触发方法
                handleSizeChange: function (val) { handleSizeChange(this, val); },
                //跳页触发方法
                handleCurrentChange: function (val) { handleCurrentChange(this, val); },
            },
            mounted: function () {

                //列表高度自适应
                tablehigh(this);

                this.id = getUrlParam("id");
                this.getData();


            }
        });
    </script>
</body>

</html>